"""
人狗大战
"""
import random
from dog import Dog
from person import Person

def first_start():
    ls = ['dog', 'person']
    n = random.randint(0,1)
    return ls[n]


if __name__ == '__main__':
    print(first_start())
    p1 = Person('p1')
    p2 = Person('p2')
    d1 = Dog('d1')
    d2 = Dog('d2')
    d3 = Dog('d3')


    d1.bite(p1)
    d2.bite(p1)
    d3.bite(p1)
    p1.attack(d1)
    p2.attack(d2)




